package com.vodone.v1pin.core.model
{

	import com.vodone.v1pin.component.popup.MainPopupBackground;
	import com.vodone.v1pin.core.vo.ConfigVO;
	import com.vodone.v1pin.navigator.view.widgth.NavIIIHPanel;
	import com.vodone.v1pin.user.vo.UserLoginVO;
	import com.vodone.v1pin.userInfo.delegate.UserInfoUtil;
	import com.vodone.v1pin.userInfo.vo.InfoVO;
	
	import flash.utils.Dictionary;
	
	import mx.collections.ArrayCollection;
	import mx.containers.Canvas;
	import mx.core.UIComponent;
	import mx.preloaders.Preloader;

	[Bindable]
	public class MainModelLocator
	{
		
		
		public var fix:String = "1";
		
		public var stageHeight:int;
		
		public var popupAllWindow:MainPopupBackground;
		
		
		public var isWindowOpen:Boolean = false;
		
		public var kfPop:Canvas;
		
		public var isAnimation:Boolean = false;
		
		public var video:Object;
		
		public var navExtends:Boolean = true;
		/**
		 * 软件地址配置信息字典
		 */
		public var configList:Dictionary = new Dictionary();
		/**
		 * 软件地址配置信息
		 */
		public var config:ConfigVO;
		
		public var navIIIHPanel:NavIIIHPanel = new NavIIIHPanel();
		
		
		public var userLoginVO:UserLoginVO = new UserLoginVO();
		public var debugStr:String = "";
		/**
		 * 版本信息
		 */
		public var version:String;
		/**
		 * 内部版本
		 */
		public var innerVersion:String;
		/**
		 * 外部版本
		 */
		public var outerVersion:String;
		
		/**
		 * 模块列表 
		 */		
		public var moduleList:Dictionary = new Dictionary();
		
		/**
		 * 当前模块
		 */		
		public var currentModuleName:String = "index";
		/**
		 * 当前模块中文名
		 */		
		public var currentModuleZHName:String = "index";
		/**
		 * 当前一级导航的id
		 */		
		public var navFirstLevel:String;
		/**
		 * 当前二级导航的id
		 */		
		public var navSecondLevel:String;
		/**
		 * 当前三级导航的id
		 */		
		public var navThirdLevel:String;
		/**
		 * 当前模块
		 */		
		public var currentModuleParam:Object;
		/**
		 * 导航字典 
		 */		
		public var navDict:Dictionary = new Dictionary();
		/**
		 * 三级导航列表
		 */		
		public var navIIIList:Array = [];
		/**
		 * 导航字典按模块分 
		 */		
		public var navSubappDict:Dictionary = new Dictionary();
		
		/**
		 * 模块共享数据
		 */		
		public var moduleObject:ConditionVO;
		
		
		public var navgatorList:Array;
		
		public var navgatorButtonDict:Dictionary = new Dictionary();
		
		
		public var showLoading:Boolean = false;
		/**
		 * 进度条 
		 */		
		public var loadingStr:Number;
		
		/**
		 * 用户信息 
		 */		
		public var userInfo:InfoVO;
		
		/**
		 * 列表页滚动条文字
		 */
		public var rowLabelText:String = "";
		
		/**
		 * 列表页滚动条文字
		 */
		public var isVideo:Boolean = false;
		/**
		 * 用户状态
		 */
//		public var tokenVO:TokenVO = new TokenVO();

		public var provinceList:Array;//全部省份列表;
		
		/**
		 * 当前浏览器的url地址 
		 */		
		public var currentURL:String = "";
		
		public var initNavIIHeight:int = 32;
		
		private static var _instance:MainModelLocator;

		public function MainModelLocator()
		{
			if (null != _instance)
			{
				return;
			}
		}

		public static function getInstance():MainModelLocator
		{
			if (_instance == null)
			{
				_instance = new MainModelLocator();
			}
			return _instance;
		}

	}
}